package com.yiyi.credit.manage.abutment.common.utils;

import com.yiyi.credit.manage.abutment.common.bean.Constant;
import org.springframework.util.ObjectUtils;


public class CommonUtil {

    public static boolean isNull(Integer i) {
        if (ObjectUtils.isEmpty(i)) {
            return true;
        }
        if (i.equals(Constant.IS_NULL)) {
            return true;
        }
        return false;
    }


    public static Integer getStatus(Integer status) {
        if (isNull(status)) {
            return null;
        }
        return status;
    }
}
